//---------------------------------------------------------------------
// <copyright file="CsdlPathExpression.cs" company="Microsoft">
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//---------------------------------------------------------------------

namespace Microsoft.Data.Edm.Csdl.Internal.Parsing.Ast
{
    /// <summary>
    /// Represents a CSDL Path expression.
    /// </summary>
    internal class CsdlPathExpression : CsdlExpressionBase
    {
        private readonly string path;

        public CsdlPathExpression(string path, CsdlLocation location)
            : base(location)
        {
            this.path = path;
        }

        public override Expressions.EdmExpressionKind ExpressionKind
        {
            get { return Expressions.EdmExpressionKind.Path; }
        }

        public string Path
        {
            get { return this.path; }
        }
    }
}